import request from "@/utils/request";
export default {
  //生成统计数据
  //将ucenter表中查询的数据添加到sta表里面
  createStaData(day) {
    return request({
      url: `/staservice/sta/registerCount/${day}`,
      method: "post"
    });
  },
  //生成统计数据进行图表的显示
  getDataSta(searchObj){
    return request({
      url: `/staservice/sta/showData/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
      method: "get"
    }); 
  },
  //实现饼状图的显示
  getBing(searchObj){
    return request({
      url: `/staservice/sta/bing/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
      method: "get"
    });
  }
};
